package com.hspedu.abstract_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/27
 * @time 18:11
 */
public abstract class Animal {
    private String name;
    private int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public abstract void eat();
}

